local liezheng = fk.CreateSkill{
    name = "lingling__liezheng",
    tags = {Skill.Compulsory}
}
Fk:loadTranslationTable{
    ["lingling__liezheng"] = "烈征",
    [":lingling__liezheng"] = "锁定技，当你造成或受到火焰伤害后，受伤角色交给伤害来源一张牌。",
    ["#lingling__liezheng-choose"] = "烈征：交给 %dest 一张牌",
}
local spec = {
    anim_type = "control",
    can_trigger = function (self, event, target, player, data)
        if player:hasSkill(liezheng.name) and target == player and data.damageType == fk.FireDamage and data.from ~= data.to then
            return data.to:isAlive() and data.from:isAlive() and not data.to:isNude()
        end
    end,
    on_cost = function (self, event, target, player, data)
        local cards = player.room:askToCards(data.to,{
            skill_name = liezheng.name,
            max_num = 1,
            min_num = 1,
            prompt = "#lingling__liezheng-choose::"..data.from.id,
            cancelable = false,
            include_equip = true,
        })
        event:setCostData(self,{cards = cards})
        return true
    end,
    on_use = function (self, event, target, player, data)
        p(event:getCostData(self).cards)
        player.room:obtainCard( data.from, event:getCostData(self).cards, false, fk.ReasonGive, data.to, liezheng.name)
    end,
}
liezheng:addEffect(fk.Damage,spec)
liezheng:addEffect(fk.Damaged,spec)
return liezheng